import { defineStore } from "pinia";
import { ref } from "vue";

export const useStationStore = defineStore("station", () => {
    const rowData = ref({
        name: "",
        id: "",
        city: "",
        fast: "",
        slow: "",
        status: "",
        now: "",
        fault: "",
        person: "",
        tel: ""
    });

    const setRowData = (row) => {
        rowData.value = row;
        console.log("store", rowData.value);
    }

    return { rowData, setRowData };
});